]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Magnifier: Disable unredirect when active
authorMagdalen Berns <thismagpie@live.com>
Tue, 28 Jan 2014 20:04:59 +0000 (20:04 +0000)
committerAdel Gadllah <adel.gadllah@gmail.com>
Tue, 4 Feb 2014 15:58:25 +0000 (16:58 +0100)
The unredirect feature does not apply to the magnifier and it
prevents users from gaming whilst it is on so disable when magnifier
is active and allow magnifier users to game!

Bug https://bugzilla.gnome.org/show_bug.cgi?id=708985

js/ui/magnifier.js

index 4eb7d3e7dbafe738a7860e589b340f9a87cb8be8..5c79acbd480588e333ca146214452699002bacc2 100644 (file)
@@ -125,10 +125,14 @@ const Magnifier = new Lang.Class({
             zoomRegion.setActive(activate);
         });
 
-        if (activate)
+        if (activate) {
+            Meta.disable_unredirect_for_screen(global.screen);
             this.startTrackingMouse();
-        else
+        }
+        else {
+            Meta.enable_unredirect_for_screen(global.screen);
             this.stopTrackingMouse();
+        }
 
         // Make sure system mouse pointer is shown when all zoom regions are
         // invisible.